package com.san.metadata.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.san.base.dao.BaseDao;
import com.san.metadata.domain.DataSourceDO;

/**
 * 数据源数据访问接口
 * @author xiangyz
 *
 */
@Mapper
public interface DataSourceDao extends BaseDao {
	
	/**
	 * 根据数据源编码获取对象
	 * @param sourceCode
	 * @return
	 */
	DataSourceDO getByCode(String sourceCode) throws Exception;
	
	/**
	 * 根据条件查询数据源
	 * @param sourceName
	 * @param sourceType
	 * @return
	 * @throws Exception
	 */
	public List<DataSourceDO> findListSource(Map<String,Object> map) throws Exception;
	
	/**
	 * 根据条件查询数据源总量
	 * @param sourceName
	 * @param sourceType
	 * @return
	 * @throws Exception
	 */
	public int findListSourceCount(Map<String,Object> map) throws Exception;
}
